//$Id: functions.js 368 2009-03-01 08:47:02Z cameron.bracken $

function autoSwitch(name1,name2,val){	
	switch (val){
        case 0:
			document.getElementsByName(name1)[0].style.visibility="hidden";
			document.getElementsByName(name2)[0].style.visibility="hidden";
		break;
		case 1:
			document.getElementsByName(name1)[0].style.visibility="visible";
			document.getElementsByName(name2)[0].style.visibility="hidden";
		break;
		case 2:
			document.getElementsByName(name1)[0].style.visibility="hidden";
			document.getElementsByName(name2)[0].style.visibility="visible";
		break;
	}
}

function autoNone(name1,name2){	
	document.getElementsByName(name1)[0].style.visibility="hidden";
	document.getElementsByName(name2)[0].style.visibility="hidden";
}

function redeye(num){
    switch (num){
        case 1:
            document.getElementById('day2').style.visibility="collapse";
            document.getElementById('day3').style.visibility="collapse";
        break;
        case 2:
	        document.getElementById('day2').style.visibility="visible";
	        document.getElementById('day3').style.visibility="collapse";
        break;
        case 3:
	        document.getElementById('day2').style.visibility="visible";
	        document.getElementById('day3').style.visibility="visible";
        break;
    }
}